﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace 列出文件夹文件
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = viewModel.g_viewModel();
            _view = viewModel.g_viewModel();
        }
        
        private void new_all_file(object sender , RoutedEventArgs e)
        {
            _view.列出路径();
        }

        private void new_tree(object sender , RoutedEventArgs e)
        {
            _view.列树文件();
        }

        private viewModel _view;

        private void open_file(object sender , RoutedEventArgs e)
        {
            _view.open_file();
        }

        private void save_file(object sender , RoutedEventArgs e)
        {
            _view.save_file();
        }
    }
}
